<?php


namespace App\Http\Controllers\Api\Repositories;

use App\Models\WxChat as Model;

class WxContRepositories
{
    /**
     * 添加
     * @param [$uid,$feedback_type,$feedback_content]
     * @return bool
     */
    public static function add($uid, $oid, $chat_content, $chat_image)
    {

        $chatModel = new Model();

        $chatModel->user_id = $uid;
        $chatModel->object_id = $oid;
        $chatModel->chat_content = $chat_content;
        $chatModel->chat_image = $chat_image;
        $chatModel->is_read = 0;
        $chatModel->chat_state = 0;


        return $chatModel->save();

    }

}
